package com.yxy.service;


import com.yxy.common.IBaseService;
import com.yxy.entity.Sport;

import java.util.List;


/**
 *
 * SportService服务service
 *
 * @version
 * <pre>
 * Author	    Bruce Version		Date		    Changes
 * 邓文俊    1.0         2018-01-11 16:28:27	 	Created       Created
 *
 * </pre>
 * @since 1.
 */
public interface SportService extends IBaseService<Sport> {





    /**
     * 批量删除数据
     * @param list
     * @return 删除结果
     */
    public boolean deleteAll(List<Sport> list);



    /**
     * 添加多条数据
     * @param list
     * @return
     */
    public boolean addBatch(List<Sport> list);

    /**
     * 模糊查询
     * @param sport
     * @return
     */
    public List<Sport> findLikeList(Sport sport);

    public List<Sport> findPage(int pageNum, int pageSize,Integer sportTypeId,Integer sortCondition);

    public Sport findOne(Integer id,Integer userId);

    Integer joinSport(Sport sport,Integer joinUserId);

    boolean CancleJoinSport(Sport sport,Integer joinUserId);

    boolean CancelSport(Integer id);

    List<Sport> selectListByUserId(Integer userId);

    List<Sport> selectIJoinSports(Integer userId);

    List<Sport> selectLoveSports(Integer userId);
}
